<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script language="javascript">


	var price=20;				
	var number=19;
	var sum=price*number;		
	alert(sum);				

	var a="邓宇宏 ";
	a+="真帅";
	alert(a);
	
	var str="邓宇宏";
	for(i=0;i<4;i++ ){
		str="厉害的"+str;
	}
	document.write(str+"  ");
	
	var i=0;
	var str="邓宇宏";
	while(i<4){
		str="无敌的"+str;
		i++;
	}
	document.write(str+"  ");
	
	var i=0;
	var str="邓宇宏";
	do{
		str="帅气的"+str;
		i++;
	} while(i<4);
	document.write(str+"  ");
	
	var now=new Date();			
var day=now.getDay();		
var week;
switch (day){
    case 1:
        week="星期一";
		break;
	case 2:
        week="星期二";
		break;
	case 3:
        week="星期三";
		break;
	case 4:
        week="星期四";
		break;
	case 5:
        week="星期五";
		break;
	case 6:
        week="星期六";
		break;
	default:
        week="星期天";
	   break;
}
alert("今天是"+week);	

function myJsFunction(){
	alert('你好,我是帅气的邓宇宏');
}

	
</script>
</head>
<body>

<input name="button" value="点击查看帅比" type="button" onClick="myJsFunction()">				

<input name="button" value="点击一下" type="button"
		onclick="window.open('newWindow.html','','width=360,height=100,status=yes')">

<img src="1.jpg" id="1">
	<script language="javascript">
		var img=document.getElementById("1");
		img.onclick=function(){
			alert("点击了图片");
		}
		 
</script>
</body>
</html>